﻿using System;
using System.Linq;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace KS.DataWrapper.Interface
{
    public interface IDataClass 
    {
        string ID { get; set; }

        DateTime Vts { get; set; }
    }

    public class DataClass : IDataClass
    {
        [BsonId]
        [BsonRepresentation(BsonType.ObjectId)]
        public string ID { get; set; }

        public DateTime Vts { get; set; }
    }
}